home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / libs / pdcurs21 / portable / has_ic.c < prev    next >
C/C++ Source or Header  |  1993-06-18  |  2KB  |  63 lines

  1. #define    CURSES_LIBRARY    1
  2. #include <curses.h>
  3. #ifdef UNIX
  4. #include <defs.h>
  5. #include <term.h>
  6. #endif
  7. #undef    has_ic
  8.  
  9. #ifdef PDCDEBUG
  10. char *rcsid_has_ic = "$Header: C:\CURSES\portable\RCS\has_ic.c 2.1 1993/06/18 20:20:02 MH Rel MH $";
  11. #endif
  12.  
  13.  
  14.  
  15.  
  16. /*man-start*********************************************************************
  17.  
  18.   has_ic()    - determine whether insert/delete character available
  19.  
  20.   X/Open Description:
  21.      This function will return TRUE if the terminal has insert character
  22.      and delete character capabilities.
  23.  
  24.   PDCurses Description:
  25.      For DOS, this is irrelevant (and ALWAYS TRUE), as the speed of
  26.      the DIRECT VIDEO or even BIOS writes is quicker than on a
  27.      serial terminal.
  28.  
  29.      For FLEXOS, this value has meaning and depends on the terminal,
  30.      though at this time, it is a constant TRUE.
  31.  
  32.   X/Open Return Value:
  33.      The has_ic() function returns TRUE if the terminal has insert
  34.      character and delete character capabilities, otherwise it returns
  35.      FALSE.
  36.  
  37.   X/Open Errors:
  38.      No errors are defined for this function.
  39.  
  40.   Portability:
  41.      PDCurses    bool has_ic(void);
  42.      X/Open Dec '88    bool has_ic(void);
  43.      BSD Curses    
  44.      SYS V Curses    
  45.  
  46. **man-end**********************************************************************/
  47.  
  48. bool    has_ic(void)
  49. {
  50. #ifdef PDCDEBUG
  51.     if (trace_on) PDC_debug("has_ic() - called\n");
  52. #endif
  53.  
  54. #ifdef UNIX
  55.     if (insert_character != NULL && delete_character != NULL)
  56.         return(TRUE);
  57.     else
  58.         return(FALSE);
  59. #else
  60.     return( TRUE );
  61. #endif
  62. }
  63.